package com.ccb.jyzx.expand.ouapi.view.respons;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.List;

/**
 * @author XIEFEI
 * @date 2019-04-28 14:05
 * @Description 树型数据封装
 **/
@ApiModel(description= "Tree数据格式")
public class TreeData implements Serializable {
    /**
     * 节点名称
     */
    @ApiModelProperty(value = "节点名")
    private String title;
    /**
     * 节点值
     */
    @ApiModelProperty(value = "节点值")
    private String value;
    /**
     * 节点键
     */
    @ApiModelProperty(value = "节点键")
    private String key;

    public TreeData(String title, String value, String key) {
        this.title = title;
        this.value = value;
        this.key = key;
    }

    public TreeData(String title, String value, String key, List<TreeData> children) {
        this.title = title;
        this.value = value;
        this.key = key;
        this.children = children;
    }

    public TreeData() {
    }



    @ApiModelProperty(value = "子节点列表")
    List<TreeData> children;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getValue() {
        return title;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public List<TreeData> getChildren() {
        return children;
    }

    public void setChildren(List<TreeData> children) {
        this.children = children;
    }


}
